package design.patterns.adaptermode.exercise.objectadapter;

import design.patterns.adaptermode.exercise.classadapter.Adaptee;
import design.patterns.adaptermode.exercise.classadapter.Target;

/**
 * desc     :
 * dateTime : 2020-07-21 18:10
 *
 * @author wwchen
 */
public class Adapter implements Target {
    private Adaptee adaptee = new Adaptee();
    @Override
    public String targetInterface1() {

        return "targetInterface1";
    }

    @Override
    public String targetInterface2() {
        return "targetInterface2";
    }

    public String adapteeOP1(){
        return adaptee.operation1();
    }
    public String adapteeOP2(){
        return adaptee.operation2();
    }
}
